/*
 * TextureMgr.h
 * Author: Johan Kristins
 *	
 */

#ifndef TEXTUREMGR_H_INCLUDED
#define TEXTUREMGR_H_INCLUDED

#include "Texture.h"
#include <hash_map>
#include <map>

class TextureMgr
{
public:
	TextureMgr();
	~TextureMgr();

	bool Init();
	void Close();

	Texture* LoadTexture(const char* filename);
private:
	void ReadFile(Texture* p_Texture, const char* filename);

	std::map<unsigned int, Texture*> m_mTextures;
	stdext::hash_map<const char*, Texture*> m_TextureLookup;
};

#endif
